//
//  InputView.swift
//  StorePlan
//
//  Created by admin on 2020/9/25.
//  Copyright © 2020 admin. All rights reserved.
//

import SwiftUI

struct InputView: View {
    
    var title:String
    var plstr:String
    @Binding var value:String
    
    var body: some View {
        HStack{
            Text(title)
            MarkedTextField( text: $value, placeholder: plstr,maxLength: 15)
                .padding(.leading)
            
        }
        .frame(height:44)
        .background(Color.white)
        .cornerRadius(8)
    }
}

struct InputView_Previews: PreviewProvider {
    static var previews: some View {
        InputView(title: "", plstr: "", value:  .constant(""))
    }
}
